package com.tcsa.openplatform.util;

/**
 * @Package: com.tcsa.openplatform.ucenter.common.utils.rsa
 * @Author: Shane
 * @Mail: shanbaohua@tcsa.cloud
 * @CreateTime: 2021-02-04 10:28
 * @Description: rsa key bean
 */
public class RsaKey {

    private String privateKey;

    private String publicKey;

    public RsaKey() {
    }

    public RsaKey(String privateKey, String publicKey) {
        this.privateKey = privateKey;
        this.publicKey = publicKey;
    }

    public static RsaKey init(String privateKey, String publicKey) {
        return new RsaKey(privateKey, publicKey);
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }
}
